package net.csdn.business.common.enums;

/**
 * @author likun
 * @date 2023/6/29 10:40
 */
public enum OpenApiTokenTypeEnum {
    /**
     * token类型
     */
    ATP, ATO, ATS, ATU;

    public static OpenApiTokenTypeEnum ofName(String name) {
        for (OpenApiTokenTypeEnum type : OpenApiTokenTypeEnum.values()) {
            if (type.name().equalsIgnoreCase(name)) {
                return type;
            }
        }
        throw new IllegalArgumentException("TokenTypeEnum param error");
    }
}